const initState = {
    inputFocus: false
}

export default (state = initState, action) => {
    if (action.type === 'INPUT_FOCUS') {
        return {
            ...state,
            inputFocus: true
        }
    }
    if (action.type === 'INPUT_BLUR') {
        return {
            ...state,
            inputFocus: false
        }
    }
    return state;
}